package com.hxzy.shop.fallback.merchant;

import com.github.pagehelper.PageInfo;
import com.hxzy.shop.common.dto.merchant.req.AnnouncementMerchantListReq;
import com.hxzy.shop.common.dto.merchant.resp.AnnouncementDetailResp;
import com.hxzy.shop.dto.auth.req.ActivateMerchantReq;
import com.hxzy.shop.dto.auth.resp.MerchantResp;
import com.hxzy.shop.dto.merchant.req.AnnouncementIdReq;
import com.hxzy.shop.dto.merchant.resp.AnnouncementClassificationListResp;
import com.hxzy.shop.dto.merchant.resp.AnnouncementMerchantDetailResp;
import com.hxzy.shop.feign.merchant.MerchantFeign;
import com.hxzy.shop.vo.Result;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 功能描述: merchant商户熔断服务
 *
 * @author tonneyyy
 */
@Component
public class MerchantFallback implements MerchantFeign {
    @Override
    public Result<Object> activateMerchant(ActivateMerchantReq req) {
        return Result.demotion();
    }

    /**
     * 获取商户信息
     * @return
     */
    @Override
    public Result<MerchantResp> getMerchantDetail() {
        return Result.demotion();
    }

    /**
     * 商户门店数量限制
     * @return
     */
    @Override
    public Result<Integer> selectStoreCount() {
        return Result.demotion();
    }

    @Override
    public Result<AnnouncementDetailResp> announcementLook(Long announcementId, String userStr) {
        return Result.demotion();
    }

    @Override
    public Result<Integer> getAnnouncementNotLook() {
        return Result.demotion();
    }

    @Override
    public Result<PageInfo<AnnouncementMerchantDetailResp>> getAnnouncementMerchant(AnnouncementMerchantListReq req) {
        return Result.demotion();
    }

    @Override
    public Result<AnnouncementDetailResp> announcementLook(AnnouncementIdReq req, String userStr) {
        return Result.demotion();
    }

    @Override
    public Result<List<AnnouncementClassificationListResp>> getAnnouncementClassification(Integer isLook, String merchantId) {
        return Result.demotion();
    }


}
